package StudyCode.summary.mycollection;

import java.util.Collections;
import java.util.Iterator;
import java.util.List;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class CreateListContainingNCopiesOfSpecifiedObject {
	public static void main(String[] args) {
		List list = Collections.nCopies(5, "www.tah1986.com");
		System.out.println("List 内容, ");
		Iterator itr = list.iterator();

		while (itr.hasNext())
			System.out.println(itr.next());

	}
}
